package com.zjw.demo.vertx.starter.template.bean;

import com.zjw.demo.vertx.starter.annotation.NonNull;
import io.vertx.core.json.JsonObject;

public class Response extends AbsResponse {

  public static Response ofSuccess(@NonNull String msg) {
    Response response = new Response();
    response.code = "200";
    response.result = "success";
    response.message = msg;
    return response;
  }

  public static Response ofFail(@NonNull String msg) {
    Response response = new Response();
    response.code = "201";
    response.result = "fail";
    response.message = msg;
    return response;
  }

}
